package operation;

import Book.BookList;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/13
 * Time: 17:29
 * Description: No Description
 */
public class Exit implements IOperation{

    public void work(BookList booklist) {
        int index = booklist.getCount();
        System.out.println("退出系统");
        for(int i = 0;i < index;i++) {
            booklist.setBook(i,null);
        }
        System.exit(0);
    }
}